/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package auctions;

import java.util.ArrayList;

/**
 *
 * @author hangsu
 */
public class AuctionResult {
    private int auctionIdx;
    
    private AuctionStatus finalResult;
    
    private ArrayList<ArrayList<Double>> bids;
    
    public AuctionResult(int idx) {
        this.auctionIdx = idx;
        bids = new ArrayList<ArrayList<Double>> ();
        bids.clear();
    }
    
    public int getIdx() {
        return this.auctionIdx;
    }
    
    public AuctionStatus getFinalResult() {
        return this.finalResult;
    }
    
    public void setFinalResult(AuctionStatus result) {
        this.finalResult = result;
    }
    
    public int getRound() {
        return this.bids.size();
    }
    
    public ArrayList<Double> getBidsOfRound(int round) {
        return this.bids.get(round);
    }
    
    public void setBidsNewRound(ArrayList<Double> roundBids) {
        this.bids.add(roundBids);
    }
    
    public void clear() {
        this.bids.clear();
    }
    
}
